﻿using System;

namespace XuanFe.Database.Model
{
    /// <summary>
    /// 员工模型
    /// </summary>
    public class StaffModel : BaseModel
    {
        /// <summary>
        /// 编码
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 登录密码，MD5加密
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 所属角色
        /// </summary>
        public string RoleId { get; set; }
        /// <summary>
        /// 入职日期
        /// </summary>
        public DateTime JoinDate { get; set; }
        /// <summary>
        /// 离职标识
        /// </summary>
        public bool Dimission { get; set; }
        public override string ToString()
        {
            return this.Name;
        }
    }
}
